package com.miracle.基础和源码.list;

public class ListItem {
    public Integer id;
    public String name;
    public boolean valid;

    public ListItem(Integer id, String name, boolean valid) {
        this.id = id;
        this.name = name;
        this.valid = valid;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ListItem{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", valid=").append(valid);
        sb.append('}');
        return sb.toString();
    }
}
